//
//  DULanguageCell.m
//  language
//
//  Created by duyujin1 on 2021/8/1.
//

#import "DULanguageCell.h"

@implementation DULanguageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    self.titleLabel.textColor = selected ?  UIColor.systemBlueColor : UIColor.blackColor;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if(self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        [self addSubview:({
            self.titleLabel=[[UILabel alloc] initWithFrame:CGRectMake(15, self.bounds.origin.y, 100, self.bounds.size.height)];
            self.titleLabel.font=[UIFont systemFontOfSize:16];
            self.titleLabel.textColor=[UIColor blackColor];
            self.titleLabel;
        })];
    }
    return self;
}

@end
